@layout("/backend/common/_container.html"){
<div class="hisui-panel" fit="true" style="padding:10px;border:0px;">
    <div class="hisui-layout" data-options="fit:true">
        <div data-options="region:'west'" style="width:215px;padding:0;border:0px;">
            <div class="hisui-panel" title="病种列表"
                 data-options="iconCls:'icon-resort',fit:true,headerCls:'panel-header-gray'" style="width:200px;">
                <div class="dhcc-hisui-toolbar">
                    <div class="dhcc-hisui-toolbar-seach">
                        <input type="text" id="seachKey" value="" class="textbox" />
                    </div>
                </div>
                <ul id="entityTree" class="ztree"></ul>
            </div>
        </div>
        <div id="workArea" data-options="region:'center'" style="padding:0 0 0 10px;border:0px;">
            <div class="hisui-layout" data-options="fit:true">
                <div class="hisui-panel" data-options="region:'north'" style="height:200px;border:0;">
                    <div class="hisui-panel" fit='true' title="准入排除配置"
                         data-options="iconCls:'icon-apply-check',fit:true,headerCls:'panel-header-gray'"
                         style="border-bottom:1px solid #ccc;border-radius:0;">
                        <form method='post' id="sdsQcentityRuleInfoForm" name="sdsQcentityRuleInfoForm"
                              enctype="multipart/form-data">
                            <table style="border-collapse:separate;border-spacing:5px">
                                <tr>
                                    <td style="text-align:right"><font color='red'>*</font>规则类型</td>
                                    <td>
                                        <select class="hisui-combobox" id="ruleType" style="width: 140px"
                                                data-options="editable:false,multiple:false,panelHeight:'auto',selectOnNavigation:false">
                                            <option value="1">准入</option>
                                            <option value="2">排除</option>
                                        </select>
                                    </td>
                                    <td style="text-align:right;"><font color='red'>*</font>描述</td>
                                    <td>
                                        <input class='textbox' style="width:258px" id="ruleDesc">
                                    </td>
                                    <td style="text-align:right;">关联科室</td>
                                    <td>
                                        <input id="isActive" class='hisui-checkbox' type="checkbox" label="是否有效"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right">函数描述</td>
                                    <td>
                                        <select class="hisui-combobox" id="expressId" style="width: 140px"
                                                data-options="editable:false,multiple:false,panelHeight:250,selectOnNavigation:false">
                                            @for (exp in expMap) {
                                            <option value="${exp.key}">${exp.value}</option>
                                            @}
                                        </select>
                                    </td>
                                    <td style="text-align:right;">函数参数</td>
                                    <td>
                                        <input class='textbox' style="width:258px" id="param">
                                    </td>
                                    <td>
                                        <input id="isOnly" class='hisui-checkbox' type="checkbox" label="仅在院用"/>
                                    </td>
                                </tr>
                                <tr style="height: 50px;">
                                    <td style="text-align:right">关键字列表</td>
                                    <td colspan="3" rowspan="3">
                                        <textarea id="param2" class="textbox" style="width:98.5%;"></textarea>
                                    </td>
                                    <td colspan="1">
                                        <#Button name="保存" id="btnSave" icon="icon-w-save"
                                        clickFun="SdsQcentityRule.edit()"/>
                                    </td>
                                    <td colspan="1">
                                        <#Button name="导入" id="btnSave" icon="icon-w-import"
                                        clickFun="SdsQcentityRule.import()"/>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
                <div data-options="region:'center'"
                     style="padding:0px;border:1px solid #ccc;border-radius:0 0 4px 4px;">
                    <#Table id="SdsQcentityRuleTable" />
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/backend/sds/sdsqcentityrule/sdsqcentityrule.js"></script>
@}